<html>
<body style="min-height:100px auto;">
<center>
	<head>
		<h3>File Upload</h3>
	</head>
	<form method="post" name="uploadFile" id="uploadFile" action="<? echo $this->url()?>/csv-file-upload" enctype="multipart/form-data"/>
		<input type="file" id="file_name" name="file_name"><br/>
		<input type="button" id="btn_file" name="btn_file" value="Upload" onclick="return fileUpload();">
	</form>
</center>
<script>
	function fileUpload(){
		var file_name=$("#file_name").val();
		if(file_name==""){
			alert("please select file");return false;
		}else{
			$("#uploadFile").submit();
		}
	}
</script>
</html>
